<template>
  <div class="tuanbox">
    <!-- <div class="nav">
            <div class="nav_box">
                <router-link to="/home/workbenck" class="router-link-active">党务工作台</router-link>
                <el-icon color="#999">
                    <DArrowRight />
                </el-icon>
                <router-link to="/home/workbenck" class="router-link-active">待办事项</router-link>
            </div>
        </div> -->
    <el-container>
      <el-aside>
        <div class="title" @click="zkclick">
          <div style="display: flex; cursor: pointer">
            <div>
              <img src="@/assets/queen.png" alt="" class="mmm" />
            </div>
            <div class="tet">党务工作台</div>
          </div>
          <el-icon color="#e02020" class="ico_2" v-if="zk">
            <ArrowUp />
          </el-icon>
          <el-icon color="#e02020" class="ico_2" v-else>
            <ArrowDown />
          </el-icon>
        </div>
        <div v-if="zk" :class="myitem == i ? 't_item' : 't_item1'" v-for="(item, i) in list" :key="i" @click="citem(i)">
          <div class="tet">
            {{ item.name }}
          </div>
        </div>
      </el-aside>
      <el-main>
        <div>
          <!-- 内容 -->
          <div v-if="myitem == 0" class="art">
            <div class="wai">
              <div class="boxfabu">
                <div>
                  <b>发布时间：</b>
                  <el-date-picker v-model="publictime" type="daterange" range-separator="To" start-placeholder="开始时间"
                    end-placeholder="结束时间" :size="size" :clearable="false" />
                </div>
                <div class="wancheng">
                  <b>事项名称: &nbsp;</b>
                  <el-input v-model="data.keyword" class="w-50 m-2" size="large" placeholder="请输入事项名称" />
                </div>
                <div class="wancheng">
                  <el-button type="primary" :icon="RefreshLeft" style="
                      background: #fff;
                      color: #e02020;
                      border-color: #e02020;
                      cursor: pointer;
                    " @click="chongzhi">重置</el-button>
                </div>
              </div>
              <div class="boxwancheng">
                <div>
                  <b>完成状态: &nbsp;</b>
                  <el-select v-model="data.status" clearable placeholder="选择已完成的状态" class="sel">
                    <el-option label="已完成" value="2" />
                    <el-option label="未完成" value="1" />
                  </el-select>
                </div>
                <div class="wancheng">
                  <b>事项分类: &nbsp;&nbsp;</b>
                  <el-select v-model="data.type" clearable placeholder="请选择" class="sels">
                    <el-option label="党费缴纳" value="1" />
                    <el-option label="教育会议" value="2" />
                    <el-option label="党员活动" value="3" />
                    <el-option label="其他" value="4" />
                  </el-select>
                </div>
                <div class="wancheng">
                  <el-button type="primary" :icon="Search" style="background: #e02020; cursor: pointer; border: none"
                    @click="chaxun">查询</el-button>
                </div>
              </div>
            </div>
            <div>
              <el-table :data="daibanlist" style="width: 100%">
                <el-table-column label="序号" align="center" width="60px"><template #default="scope">
                    {{ (data.page - 1) * data.page_size + scope.$index + 1 }}
                  </template></el-table-column>
                <el-table-column prop="create_time" label="发布时间" align="center" />
                <el-table-column prop="name" label="事项名称" align="center" />
                <el-table-column prop="type" label="事项分类" align="center">
                  <template #default="scope">
                    <div v-if="scope.row.type == 1">
                      <span>党费缴纳</span>
                    </div>
                    <div v-else-if="scope.row.type == 2">
                      <span>教育会议</span>
                    </div>
                    <div v-else-if="scope.row.type == 3">
                      <span>党员活动</span>
                    </div>
                    <div v-else>
                      <span>其他</span>
                    </div>
                  </template>
                </el-table-column>
                <el-table-column label="完成状态" width="80px" align="center" v-if="position <= 2">
                  <template #default="scope">
                    <div style="display: flex; align-items: center;">
                      <img src="../../assets/dui.png" alt="" class="dui" style="margin-right: 5px"
                        v-if="scope.row.status" />
                      <img src="../../assets/cuo.png" alt="" class="dui" style="margin-right: 5px" v-else />
                      <div style="color: #e02020;cursor: pointer;" @click="typeid(scope.row.id)">
                        查看
                      </div>
                    </div>
                  </template>
                </el-table-column>
                <el-table-column label="完成状态" width="80px" align="center" v-else>
                  <template #default="scope">
                    <div style="display: flex; justify-content: center">
                      <img src="../../assets/dui.png" alt="" class="dui" 
                        v-if="scope.row.status" />
                      <img src="../../assets/cuo.png" alt="" class="dui"  v-else />
                    </div>
                  </template>
                </el-table-column>
                <el-table-column prop="status" label="操作" align="center">
                  <template #default="scope">
                    <div v-if="scope.row.status">
                      <span class="cha" @click="chakan(scope.row)">编辑</span>
                    </div>
                    <div v-else>
                      <span class="wei" @click="biao(scope.row)">标记完成</span>
                    </div>
                  </template>
                </el-table-column>
              </el-table>
            </div>
            <div class="con_bom">
              <div class="cc">共{{ total }}条</div>
              <el-pagination v-model:current-page="data.page" v-model:page-size="pageSize" background
                layout="prev, pager, next" :total="total" @next-click="nextclick" @prev-click="prevclick"
                @change="change1" />
            </div>
          </div>
          <div v-if="myitem == 1">
            <div class="munmm">
              <div class="div_box">
                <div v-for="(item, index) in procedata" @click="dianji(index)" :key="item.id">
                  <div class="items" v-if="index == aa">
                    <div class="dyg" v-if="index == aa">{{ item.id }}</div>
                    <div class="dyg1" v-else>{{ item.id }}</div>
                    <img :src="item.sel_icon" alt="" v-if="index == aa" />
                    <img :src="item.not_icon" alt="" v-else />
                    <div class="deg" v-if="index == aa">{{ item.name }}</div>
                    <div class="deg1" v-else>{{ item.name }}</div>
                  </div>
                  <div class="items1" v-else>
                    <div class="dyg" v-if="index == aa">{{ item.id }}</div>
                    <div class="dyg1" v-else>{{ item.id }}</div>
                    <img :src="item.sel_icon" alt="" v-if="index == aa" />
                    <img :src="item.not_icon" alt="" v-else />
                    <div class="deg" v-if="index == aa">{{ item.name }}</div>
                    <div class="deg1" v-else>{{ item.name }}</div>
                  </div>
                </div>
              </div>
              <div class="apply_div">
                <h3>介绍说明</h3>
                <!-- <div v-for="(item, index) in procedata"> -->
                <!-- <div v-html="item.intro"></div> -->
                <!-- </div> -->
                <ol>
                  <li v-for="item in intro">
                    {{ item }}
                  </li>
                </ol>

                <h3 v-if="relatedfile.length > 0">文件下载</h3>
                <ol class="ol_div" v-if="relatedfile.length > 0">
                  <li v-for="(item, index) in relatedfile" style="color: #e02020; cursor: pointer" @click="xz(item)">
                    <div>
                      <el-icon style="color: #e02020">
                        <FolderOpened />
                      </el-icon>
                      <!-- <a :href="hrefs" download="文件名.xls">
                        {{ item.name }}</a
                      > -->
                      {{ item.name }}
                    </div>
                  </li>
                </ol>
              </div>
            </div>
          </div>
          <div class="aa"></div>
        </div>
        <!-- 弹框 -->
        <div class="mask" v-if="centerDialogVisible">
          <div class="content">
            <div class="con_title">
              <div class="e_lef" v-if="xxx == 2">教育会议</div>
              <div class="e_lef" v-if="xxx == 1">党费缴纳</div>
              <div class="e_lef" v-if="xxx == 3">党员活动</div>
              <div class="e_lef" v-if="xxx == 4">其他</div>
              <!-- <div class="e_rig" style="cursor: pointer" @click="qu">x</div> -->
              <img class="e_rig" style="cursor: pointer" @click="qu" src="@/image/xxx.png" alt="" />
            </div>
            <div v-if="xxx == 1">
              <div class="mytitme">
                <div class="c_tit">缴纳日期：</div>
                <el-date-picker v-model="value" type="datetime" placeholder="请选择缴纳日期" format="YYYY-MM-DD" />
              </div>
              <div class="mytitme">
                <div class="c_tit">缴纳金额:</div>
                <el-input v-model="data1.amount" placeholder="请输入缴纳金额" />
              </div>
              <div class="xg">相关截图</div>
            </div>
            <el-input v-else v-model="textarea" maxlength="500" placeholder="请输入" show-word-limit type="textarea"
              @input="mychange" />
            <div class="img">
              <div v-for="(item, index) in imgs" class="bbb">
                <img src="@/image/xxx.png" class="aaa" @click="myxxx(index)" />
                <img :src="item" alt="" class="imgs" :key="item" />
              </div>
            </div>
            <div class="sc" v-if="imgs.length < 8">
              <div class="sc_lef">
                <el-icon>
                  <PictureFilled />
                </el-icon>
              </div>
              <div class="sc_rig">
                <el-upload :auto-upload="false" accept="image/*" :show-file-list="false" :on-change="avatarFileChange"
                  :before-upload="beforeAvatarUpload">
                  <div class="dj">点击上传</div>
                </el-upload>
                <!-- <div class="dj">点击上传</div> -->
                <div class="w">
                  限8张，图片格式限 png,bmp,jpg,jpeg; 图片大小小于1M
                </div>
              </div>
            </div>
            <!-- 发布 -->
            <div class="btn">
              <div class="bt qx" @click="qu">取消</div>
              <div class="bt tj" @click="add">提交</div>
            </div>
          </div>
        </div>
        <div class="mask" v-if="xiangqing">
          <div class="content">
            <div class="con_title">
              <div class="e_lef">详情</div>
              <div class="e_rig" style="cursor: pointer" @click="qu">x</div>
            </div>
            <div class="xq">
              <div class="nrms" v-if="kz != 1">
                <div class="cc">内容描述：</div>
                {{ data2.content }}
              </div>
              <div class="dat" v-if="kz == 1">
                <div class="cc">缴纳日期：</div>
                {{ data2.date }}
              </div>
              <div class="dat" v-if="kz == 1">
                <div class="cc">缴纳金额：</div>
                {{ data2.amount }}
              </div>
              <div class="ima" v-if="data2.images.length > 0">
                <div class="cc">相关截图</div>
                <div class="imas">
                  <img :src="item" alt="" v-for="item in data2.images" />
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="mask" v-if="tpid">
          <div class="mska">
            <div></div>
            <img class="e_rig" style="cursor: pointer" @click="quxiao" src="@/image/xxx.png" alt="" />
          </div>
          <el-col :span="24">
            <el-menu class="el-menu-vertical-demo" router="true" v-for="(item, index) in typedata" :key="index">
              <el-sub-menu :index="index">
                <template #title>
                  <img src="@/assets/minlogo.png" alt="" class="mmmmmi" />
                  <span style="color: red">{{ item.name }} </span>
                  <div v-if="item.todo == 1" style="margin-left: 10px; margin-top: -35px">
                    <img src="../../assets/dui.png" alt="" class="dui" />
                  </div>
                  <div v-if="item.todo == 0" style="margin-left: 10px; margin-top: -35px">
                    <img src="../../assets/cuo.png" alt="" class="dui" />
                  </div>
                </template>
                <div class="itemmm" v-for="(ite, ind) in item.children" :key="ind">
                  <div style="width: 200px">{{ ite.name }}</div>
                  <div v-if="ite.todo == 1">
                    <img src="../../assets/dui.png" alt="" class="dui" />
                  </div>
                  <div v-else>
                    <img src="../../assets/cuo.png" alt="" class="dui" />
                  </div>
                  <div></div>
                </div>
              </el-sub-menu>
            </el-menu>
          </el-col>
        </div>
      </el-main>
    </el-container>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import {
  Delete,
  Edit,
  Search,
  Share,
  Upload,
  RefreshLeft,
  Download,
  Plus,
  ZoomIn
} from '@element-plus/icons-vue'
import { process, matter, mattersou } from '@/api/team'
import { useRouter } from 'vue-router'
import moment from 'moment'
import { ElMessage } from 'element-plus'
import { reqUpload, getmarkApi, getmark1Api, getdeptApi } from '@/api/user'

import type { UploadProps } from 'element-plus'

let data2: any = ref({
  content: '', //内容
  todo_id: '',
  date: '', //时间
  images: '', //图片
  amount: '' //金额
})
const xiangqing = ref(false)
const kz = ref()
// const chakan = (i: any) => {
//   console.log(i, '查看')
//   kz.value = i.type
//   xiangqing.value = true
// getmark1Api(i.id).then(res => {
//   data2.value = res.data.data
//   console.log(data2.value)
// })
// }
const textarea = ref('')
const mychange = () => {
  if (textarea.value.length > 500) {
    textarea.value = data1.value.content
    ElMessage.success('内容需在500字内')
  } else {
    data1.value.content = textarea.value
  }
  // console.log(data1.value.center.length)
}
const position: any = localStorage.getItem('position')

const tpid = ref(false)
const typedata = ref()
const typeid = (i: any) => {
  console.log(position)
  tpid.value = true
  getdeptApi(i).then(res => {
    console.log(res)
    typedata.value = res.data.data[0].children
  })
}
const quxiao = () => {
  tpid.value = false
}
const myxxx = (i: any) => {
  imgs.value.splice(i, 1)
  console.log(imgs.value)
}
const biao = (my: any) => {
  // console.log(my, '123')
  centerDialogVisible.value = true
  data1.value.todo_id = my.id
  xxx.value = my.type
  // console.log(data1.value.todo_id, '12345')
}
const chakan = (i: any) => {
  centerDialogVisible.value = true
  data1.value.todo_id = i.id
  xxx.value = i.type
  getmark1Api(i.id).then(res => {
    data2.value = res.data.data
    data1.value.content = data2.value.content
    textarea.value = data2.value.content
    data1.value.amount = data2.value.amount
    data1.value.date = data2.value.date
    if (data2.value.images == '') {
      imgs.value = []
    } else {
      imgs.value = data2.value.images
    }
    console.log(data2.value, '12')
  })
  // console.log(data1.value.todo_id, '12345')
}
const aa = ref(0)
const dianji = (i: any) => {
  aa.value = i
  if (procedata.value[i].intro != '') {
    intro.value = procedata.value[i].intro.split('\n')
  }

  relatedfile.value = procedata.value[i].related_file
  console.log(relatedfile.value, '下载')
}
const hrefs = ref()
const xz = (i: any) => {
  console.log(i)
  setTimeout(() => {
    // // 创建a标签
    // const link = document.createElement('a')
    // // download属性
    // link.setAttribute('download', i.name)
    // // href链接
    // link.setAttribute('href', i.url)
    // // 自执行点击事件
    // link.click()
    // document.body.removeChild(link)
    window.open(i.url)
  }, 1000)
}
// 我的
const value = ref('')
const xxx = ref()
let data1: any = ref({
  content: '', //内容
  todo_id: '',
  date: '', //时间
  images: '', //图片
  amount: '' //金额
})
// const add1 = () => {
//   data1.value.start_time = moment(value.value).format('YYYY-MM-DD')
//   console.log(data1.value)
// }
const add = () => {
  // data1.value.images = JSON.stringify(imgs.value)
  data1.value.images = imgs.value.join(',')
  data1.value.date = moment(value.value).format('YYYY-MM-DD')
  console.log(data1.value, '图片')
  getmarkApi(data1.value).then(res => {
    // console.log(res, '提交')
    textarea.value = ''
    imgs.value = []
    data1.value = ref({
      content: '', //内容
      todo_id: '',
      date: '', //时间
      images: '', //图片
      amount: '' //金额
    })
    ElMessage.success(res.data.msg)
    centerDialogVisible.value = false
    daiban()
  })
}
const qu = () => {
  textarea.value = ''
  imgs.value = []
  data1.value = ref({
    content: '', //内容
    todo_id: '',
    date: '', //时间
    images: '', //图片
    amount: '' //金额
  })
  centerDialogVisible.value = false
  xiangqing.value = false
}
const avatarFile = ref({})
const imageUrl: any = ref('')
const imgs: any = ref([])
function dataURLtoFile(dataURL: any) {
  let arr = dataURL.split(',')
  let mime = arr[0].match(/:(.*?);/)[1]
  let bstr = atob(arr[1])
  let n = bstr.length
  let u8arr = new Uint8Array(n)
  while (n--) {
    u8arr[n] = bstr.charCodeAt(n)
  }
  return new File([u8arr], `${Date.now}.jpg`, {
    type: mime
  })
}
// const handleAvatarSuccess: UploadProps['onSuccess'] = (
//   response,
//   uploadFile
// ) => {
//   imageUrl.value = URL.createObjectURL(uploadFile.raw!)
//   // console.log(imageUrl.value, '图片')
// }
const avatarFileChange = (e: { raw?: any }) => {
  avatarFile.value = e
  imageUrl.value = URL.createObjectURL(e.raw)
  console.log(imageUrl.value, '图片')
  let img = new Image()
  img.src = imageUrl.value

  // 等待图片加载完成
  img.onload = async () => {
    // 创建canvas元素
    let canvas = document.createElement('canvas')
    let ctx: any = canvas.getContext('2d')

    // 设置canvas尺寸
    let width = img.width
    let height = img.height
    let scale = width / height
    let maxWidth = 800
    let maxHeight = 800 / scale
    canvas.width = maxWidth
    canvas.height = maxHeight

    // 绘制图片
    ctx.drawImage(img, 0, 0, maxWidth, maxHeight)

    // 将canvas转换为base64格式的图片
    let base64 = canvas.toDataURL('image/jpeg', 0.8)
    // 将base64格式的图片转换为File对象
    let file = dataURLtoFile(base64)
    avatarFile.value.raw = file
    let { data } = await reqUpload(avatarFile.value.raw)
    if (data.code != 1) {
      return ElMessage.error('上传失败！')
    }
    const aa = 'http://wuj.vunmi.net/' + data.data.url
    imgs.value.push(aa)
    console.log(imgs, '图片地址')
    // imageUrl.value = data.data.url
  }
}
const beforeAvatarUpload: UploadProps['beforeUpload'] = async (
  rawFile: any
) => {
  if (
    rawFile.type !== 'image/jpeg' &&
    rawFile.type !== 'image/png' &&
    rawFile.type !== 'image/jpg' &&
    rawFile.type !== 'image/bmp'
  ) {
    ElMessage.error('图片格式不对!')
    return false
  } else if (rawFile.size / 1024 / 1024 > 1) {
    ElMessage.error('图片大小不能超过 1MB!')
    return false
  }

  // let res = await reqUpload(rawFile)
  // imageUrl.value = res.data.data.uri
  // if (imgs.value.length >= 8) {
  //   ElMessage.error('图片数量不能大于8!')
  //   return false
  // } else {
  //   imgs.value.push(imageUrl.value)
  //   // console.log(imgs.value, '图片')
  // }
  // console.log(res)

  return false
}
const centerDialogVisible = ref(false)

// 结束
const size = ref<'default' | 'large' | 'small'>('default')
let Router = useRouter()
function articles(id: any) {
  // Router.push('/home/articles')
  Router.push({ path: '/home/articles', query: { id } })
}
// let names: any = ref({
//     page: 1,
//     page_size: 5
// })

const total = ref(10)
const list = ref([
  { id: 1, name: '待办事项' },
  { id: 2, name: '党员发展流程' }
])
const publictime = ref('')
//查询按钮
//待办事项接口
let daibanlist = ref()
let data: any = ref<any>({
  start_time: '',
  end_time: '',
  keyword: '',
  type: '',
  status: '',
  page: 1,
  page_size: 20
})
const daiban = async () => {
  await mattersou(data.value).then(res => {
    daibanlist.value = res.data.data.data
    console.log(daibanlist.value, 'wd')
    total.value = res.data.data.total
    daibanlist.value = res.data.data.data.map((item: any, index: any) => {
      if (item.status == 1) {
        item.status = false
      } else {
        item.status = true
      }
      return item
    })
  })
}
daiban()
const chaxun = async () => {
  let aa = publictime.value[0]
  let bb = publictime.value[1]
  if (publictime.value != '') {
    data.value.start_time = moment(aa).format('YYYY-MM-DD')
    data.value.end_time = moment(bb).format('YYYY-MM-DD')
  }
  daiban()
}
//重置按钮
const chongzhi = () => {
  data.value = {
    start_time: '',
    end_time: '',
    keyword: '',
    type: '',
    status: '',
    page: 1,
    page_size: 20
  }
  publictime.value = ''
  daiban()
}

const myitem = ref(0)
const citem = async (ev: number) => {
  data.value.page = 1
  // names.value.cid = list.value[ev].id
  myitem.value = ev
  if (ev == 0) {
    daiban()
  } else {
    // console.log(ev, '1')
  }
}
// 分页
const pageSize = ref(20)
const nextclick = async () => {
  data.value.page++
  daiban()
}
const prevclick = async () => {
  data.value.page--
  daiban()
}
const change1 = async (e: any) => {
  data.value.page = e
  daiban()
}
// 展开
const zk = ref(true)
const zkclick = () => {
  zk.value = !zk.value
}
//流程接口
const procedata = ref()
const intro = ref()
// const relatedfile=ref()
const relatedfile = ref()
const proce = async () => {
  await process().then(res => {
    procedata.value = res.data.data.reverse()
    if (procedata.value[0].intro != '') {
      intro.value = procedata.value[0].intro.split('\n')
    }
    relatedfile.value = res.data.data[0].related_file
    console.log(res, 'sssss')
    // console.log(intro.value, '流程')
  })
}
proce()
</script>

<style lang="scss" scoped>
.munmm {
  height: 1500px;
}

.e_rig {
  width: 16px;
  height: 16px;
}

.xq {
  margin-top: 30px;

  .dat {
    display: flex;
    margin: 20px 0;
  }

  .ima {
    margin-top: 30px;

    .imas {
      display: flex;
      flex-wrap: wrap;

      img {
        margin: 32px 20px 0 0;
        width: 155px;
        height: 155px;
      }

      img:nth-child(4n) {
        margin-right: 0;
      }
    }
  }
}

.xg {
  margin-top: 30px;
}

.mytitme {
  margin-top: 30px;
  display: flex;
  align-items: center;
  cursor: pointer;

  .c_tit {
    // margin-right: 20px;
    width: 100px;
  }

  ::v-deep .el-input {
    width: 450px !important;
  }
}

.mask {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;

  .content::-webkit-scrollbar {
    display: none;
  }

  .content {
    width: 680px;
    height: 500px;
    overflow: auto;
    margin: 100px auto;
    padding: 32px 40px 35px;
    background-color: #fff;

    .con {
      display: flex;
      flex-direction: column;
      align-items: center;

      // text-align: center;
      .tit {
        font-size: 18px;
        font-weight: 600;
        color: #1a1a1a;
        margin: 60px 0 45px;
      }

      .wzdl {
        font-size: 16px;
        font-weight: 500;
        line-height: 40px;
        text-align: center;
        width: 157px;
        height: 40px;
        border-radius: 60px;
        background: #e02020;
        color: #ffffff;
      }
    }

    .btn {
      display: flex;
      margin-top: 48px;

      .bt {
        text-align: center;
        line-height: 40px;
        width: 96px;
        height: 40px;
        font-size: 16px;
        font-weight: 500;
        border-radius: 60px;
        background: #e02020;
        color: #fff;
        cursor: pointer;
      }

      .qx {
        margin: 0 32px 0 355px;
        background: #f5f5f5;
        color: #999999;
      }
    }

    .sc {
      display: flex;
      margin-top: 31px;

      .sc_rig {
        .dj {
          cursor: pointer;
          text-align: center;
          width: 88px;
          height: 32px;
          line-height: 32px;
          border-radius: 4px;
          /* 党建主色 */
          background: #e02020;
          font-size: 14px;
          font-weight: 500;
          color: #ffffff;
        }

        .w {
          margin-top: 24px;
          width: 124px;
          font-size: 14px;
          color: #1a1a1a;
          line-height: 32px;
        }
      }

      .sc_lef {
        width: 155px;
        height: 155px;
        margin-right: 16px;
        background: rgba(224, 32, 32, 0.1);
        text-align: center;
        line-height: 205px;

        .el-icon {
          font-size: 60px;
          color: #e02020;
        }
      }
    }

    .con_title {
      display: flex;
      justify-content: space-between;
      font-size: 18px;
      font-weight: 600;
      color: #1a1a1a;
    }

    .el-textarea {
      margin-top: 32px;
      height: 300px;
      background: #f5f5f5;

      ::v-deep .el-textarea__inner {
        height: 300px !important;
        font-size: 20px;
        background: #f5f5f5;
      }
    }

    .img {
      display: flex;
      flex-wrap: wrap;

      .bbb {
        position: relative;
        margin: 32px 20px 0 0;
        width: 155px;
        height: 155px;
      }

      .imgs {
        // margin: 32px 20px 0 0;
        width: 155px;
        height: 155px;
      }

      .aaa {
        position: absolute;
        top: 0;
        right: 0;
        background-color: rgba(153, 153, 153, 0.5);
        cursor: pointer;
      }

      .bbb:nth-child(4n) {
        margin-right: 0;
      }
    }
  }
}

.el-menu-vertical-demo {
  span {
    color: red;
  }
}

.tuanbox {
  width: 100%;
  // margin-top: 20px;
  // background: #dcdadafb;
}

.couter {
  width: 100%;
  display: flex;
  height: 100vh;

  .left {
    width: 232px;
    // height: 100%;
    background: #fff;
    margin-left: 20px;
    margin-top: 15px;
  }

  .right {
    width: 78%;
    background: #fff;
    margin-left: 20px;
    margin-top: 15px;
  }
}

.el-container {
  .el-main {
    background-color: #fff;

    .art {
      width: 100%;
      position: relative;
      height: 1200px;
      overflow: hidden;

      // margin-top: -18px;
      // margin-left: -16px;
      // padding: 0 16px;
      .con_bom {
        position: absolute;
        bottom: 100px;
        left: 50%;
        display: flex;
        transform: translateX(-50%);

        .cc {
          margin-top: 8px;
        }
      }

      .a_con {
        padding: 0 16px;

        .a_item {
          border-bottom: 1px solid #d8d8d8;
          height: 93px;

          .it_top {
            padding-top: 20px;
            font-size: 16px;
            font-weight: 600;
            color: #1a1a1a;
            white-space: nowrap;
            /* 防止文本换行 */
            overflow: hidden;
            /* 隐藏溢出内容 */
            text-overflow: ellipsis;
            /* 当文本溢出时，使用省略号表示 */
            width: 700px;
            /* 定义容器宽度 */
          }

          .it_bom {
            display: flex;
            justify-content: space-between;
            margin-top: 12px;
            font-size: 14px;
            font-weight: normal;
            color: #767676;
          }
        }
      }

      .title {
        display: flex;
        padding-top: 22px;
        cursor: pointer;

        .t_nav {
          font-size: 16px;
          font-weight: 600;
          color: #e02020;
        }

        .t_nav1 {
          font-size: 16px;
          font-weight: 600;
          color: #767676;
        }

        .tet {
          width: 400px;
          text-align: center;
          margin-bottom: 11px;
        }
      }
    }
  }

  .el-aside {
    width: 232px;
    background-color: #fff;
    margin: 0 16px;

    .t_item {
      margin: 4px auto;
      width: 216px;
      height: 36px;
      line-height: 36px;
      color: #e02020;
      font-size: 14px;
      border-radius: 2px;
      background: rgba(224, 32, 32, 0.1);
      cursor: pointer;

      .tet {
        margin-left: 44px;
      }
    }

    .t_item1 {
      margin: 4px auto;
      width: 216px;
      height: 36px;
      line-height: 36px;
      color: rgba(0, 0, 0, 0.6);
      font-size: 14px;
      cursor: pointer;

      .tet {
        margin-left: 44px;
      }
    }

    .title {
      display: flex;
      width: 216px;
      height: 36px;
      line-height: 36px;
      margin: 16px 8px 0;

      .ico_1 {
        margin: 10px 8px 0 20px;
        font-size: 15px;
      }

      .ico_2 {
        font-size: 15px;
        margin: 10px 8px 0 80px;
        cursor: pointer;
      }

      .tet {
        font-size: 14px;
        color: #e02020;
      }
    }
  }
}

.nav {
  height: 54px;
  line-height: 54px;
  background-color: #fff;
  margin-bottom: 16px;

  .nav_box {
    margin-left: 44px;
    font-size: 16px;
    color: #999999;

    .router-link-active {
      font-size: 16px;
      color: #999999 !important;
      text-decoration: none;
    }

    .el-icon {
      margin: 15px 10px 0 10px;
    }
  }
}

// @media (max-width: 1024px) {
//     .article {
//         width: 100%;
//         margin: 0 auto;
//         background-color: #f0f0f0;
//     }
// }

// @media (min-width: 1025px) {
//     .article {
//         width: 1080px;
//         margin: 0 auto;
//         background-color: #f0f0f0;
//     }
// }

.wai {
  width: 100%;
  border-bottom: 2px solid #e5e5e5;
  height: 130px;
}

.boxfabu {
  display: flex;
  width: 100%;

  b {
    width: 50px;
  }

  ::v-deep .el-date-editor.el-input__wrapper {
    width: 210px !important;
  }
}

.wancheng {
  margin-left: 20px;
}

.boxwancheng {
  display: flex;

  .sel {
    width: 232px;
  }

  .sels {
    width: 205px;
    // height: 32px !important;
  }

  margin-top: 20px;
}

.cha {
  color: #999999;
  cursor: pointer;
}

.wei {
  color: #e02020;
  cursor: pointer;
}

.ims {
  width: 100px;
  height: 100px;
  margin: 15px 0;
}

.dui {
  width: 18px;
  height: 18px;
}

.im {
  width: 50px;
  height: 50px;
  margin-left: 3px;
}

.w-50 {
  width: 210px !important;
  height: 32px !important;
}

.div_box {
  display: flex;
  flex-wrap: wrap;
  margin-top: 45px;

  .items {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 45px;
    width: 200px;
    height: 180px;
    border-radius: 15px;
    text-align: center;
    margin-left: 40px;
    border: 1px solid #e02020;

    .dyg {
      color: #fff;
      margin-top: 10px;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      line-height: 28px;
      text-align: center;
      background: #e02020;
    }

    .dyg1 {
      color: #fff;
      margin-top: 10px;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      line-height: 28px;
      text-align: center;
      background: #999;
      border: 1px solid #999;
    }

    .deg {
      font-size: 14px;
      font-weight: 600;
      color: #e02020;
    }

    .deg1 {
      font-size: 14px;
      font-weight: 600;
      color: #999;
    }

    img {
      // margin: 10px 0;
      width: 48px;
      height: 48px;
      margin: 28px 0;
    }

    p {
      color: #999999;
      margin: 20px 0;
    }
  }

  .items1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 45px;
    width: 200px;
    height: 180px;
    border-radius: 15px;
    text-align: center;
    margin-left: 40px;
    border: 1px solid #e5e5e5;

    .dyg {
      color: #fff;
      margin-top: 10px;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      line-height: 28px;
      text-align: center;
      background: #999;
    }

    .dyg1 {
      color: #fff;
      margin-top: 10px;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      line-height: 28px;
      text-align: center;
      background: #999;
    }

    .deg {
      font-size: 14px;
      font-weight: 600;
      color: #e02020;
    }

    .deg1 {
      font-size: 14px;
      font-weight: 600;
      color: #999;
    }

    img {
      // margin: 10px 0;
      width: 48px;
      height: 48px;
      margin: 28px 0;
    }

    p {
      color: #999999;
      margin: 20px 0;
    }
  }

  .id_div {
    width: 28px;
    height: 28px;
    // background: #999999;
    color: #fff;
    text-align: center;
    line-height: 28px;
    margin: 10px auto;
  }
}

.apply_div {
  h3 {
    margin: 20px 45px;
  }

  ol {
    margin-left: 60px;
    list-style-type: none;
    /* 移除数字标记 */

    li {
      line-height: 25px;
    }
  }
}

.ol_div {
  margin-left: 50px !important;
  list-style: none;
}

.mmm {
  width: 18px;
  height: 18px;
  margin-right: 3px;
  margin-top: 9px;
  margin-left: 10px;
}

// @media (min-width: 2160px) {
//   .tuanbox {
//     width: 100%;
//     margin: 0 auto;
//     // background-color: #f0f0f0;
//   }
// }

// @media (max-width: 2159px) {
.tuanbox {
  width: 1080px;
  margin-top: 16px !important;
  margin: 0 auto;
  // background-color: #f0f0f0;
}

.el-col-24 {
  margin-left: 25%;
  width: 50%;
  height: 500px;
  overflow: auto;
}

.el-col-24::-webkit-scrollbar {
  display: none;
}

.itemmm {
  display: flex;
  margin-left: 50px;
  // justify-content: start;
  margin-right: 50px;
  height: 50px;
}

.mmmmmi {
  width: 18px;
  height: 18px;
  margin-right: 3px;
  margin-top: 2px;
}

.mska {
  height: 30px;
  line-height: 30px;
  margin-top: 30px;
  margin-left: 25%;
  width: 50%;
  display: flex;
  background-color: #fff;
  justify-content: space-between;

  .e_rig {
    margin-right: 20px;
    margin-top: 10px;
  }
}
</style>
